package com.cxb.springboot.listener.rabbitmq;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Classname DirectReceiveListener
 * @Date 2023/9/12 23:09
 * @Created by Administrator
 * @Description TODO
 */
@Component
@Slf4j
public class DirectReceiveListener {

    @RabbitListener(queues = "TestDirectQueue")
    public void consumeMessage(Object message) {
        log.info("DirectReceiveListener消费1的消息:{}", message);
    }
}
